package springbootyx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import springbootyx.service.IFocusService;
import springbootyx.entity.Focus;
import springbootyx.mapper.IFocusMapper;

import java.util.List;
@Service

public class FocusService implements IFocusService {

    @Autowired
    private IFocusMapper focusMapper;

    @Override
    public List<Focus> getMyFocus(int userid) {
        return focusMapper.getMyFocus(userid);
    }

    @Override
    public void addFocus(int userid, int beuserid) {
        focusMapper.addFocus(userid, beuserid);
    }


    @Override
    public void deleteFocus(int userid, int beuserid) {
        focusMapper.deleteFocus(userid, beuserid);
    }

}
